package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.DaoPledgeUserProduce;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * dao质押活动质押产品表(sc_dao_pledge_user_produce)数据Mapper
 *
 * @author jinpinhai
 * @since 2024-11-26 17:14:03
 */
@Mapper
public interface DaoPledgeUserProduceMapper extends BaseMapper<DaoPledgeUserProduce> {


    int saveBatch(@Param("list") List<DaoPledgeUserProduce> list);

    /**
     * 统计期数质押产品数量
     * @param userPeriodsId 期数id
     * @return integer
     */
    Integer sumProductNumber(@Param("userPeriodsId") Long userPeriodsId);
}
